package com.outstanding.ifml.exception;




/**
 * 业务异常
 * @author chenzhixuan
 *
 */
public class IFMLException extends RuntimeException{
	
	private String code;
	private String info;
	
	public IFMLException(String code,String info){
		super(code);
		this.code = code;
		this.info = info;
	}
	
	
	public IFMLException(String code){
		this(code,null);
	}
	
	 /**
     * java.lang.Object#toString()
     */
    @Override
	public String toString(){
		return "Code:"+this.code+"Info:"+this.info+"";
	}
	
}
